package org.aristotle.user.model.vo;

import com.alibaba.fastjson.annotation.JSONField;
import com.alibaba.fastjson.serializer.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

@Data
@ApiModel("用户")
public class UserVO {

    @ApiModelProperty("用户id")
    @JSONField(name = "id", serializeUsing = ToStringSerializer.class)
    private java.lang.Long id;

    @ApiModelProperty("用户名")
    @JSONField(name = "username")
    private String username;
    @ApiModelProperty("密码")
    @JSONField(name = "password")
    private String password;
    @ApiModelProperty("昵称")
    @JSONField(name = "nickname")
    private String nickname;
    @ApiModelProperty("地址")
    @JSONField(name = "address")
    private String address;
    @ApiModelProperty("简介")
    @JSONField(name = "info")
    private String info;
    @ApiModelProperty("性别")
    @JSONField(name = "sex")
    private String sex;
    @ApiModelProperty("手机号")
    @JSONField(name = "phone")
    private String phone;
    @ApiModelProperty("邮箱")
    @JSONField(name = "email")
    private String email;
    @ApiModelProperty("头像")
    @JSONField(name = "avatar")
    private String avatar;
    @ApiModelProperty("状态")
    @JSONField(name = "status")
    private Integer status;

    @ApiModelProperty("创建时间")
    @JSONField(name = "createTime", format = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private java.util.Date createTime;

    @ApiModelProperty("修改时间")
    @JSONField(name = "updateTime", format = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private java.util.Date updateTime;



}
